<?php
	if (!empty($product)) {?>
	<h3><?=__('products.view.title')?></h3>
	<table>
		<tr>
			<th><?=__('products.name')?></th>
			<td><?=$product['Product']['name']; ?></td>
		</tr>
		<tr>
			<th><?=__('products.catName')?></th>
			<td><?=$product['Category']['name']; ?></td>
		</tr>
		<tr>
			<th><?=__('products.price')?></th>
			<td><?=$product['Product']['price']; ?></td>
		</tr>
		<tr>
			<th><?=__('products.description')?></th>
			<td><?=$product['Product']['description']; ?></td>
		</tr>
		<tr>
			<th><?=__('products.enable')?></th>
			<td><?=$product['Product']['enable']; ?></td>
		</tr>
		<tr>
			<th><?=__('products.doc')?></th>
			<td><?=date('d-m-Y', strtotime($product['Product']['created'])); ?></td>
		</tr>
		<tr>
			<th><?=__('products.dom')?></th>
			<td><?=date('d-m-Y', strtotime($product['Product']['modified'])); ?></td>
		</tr>
	</table>
	<p><a href="/products"><?=__('products.view.backIndex')?></a></p>

<?php } else {?>

	<h3><?=__('products.view.noProduct')?></h3>
<?php }?>